# -*- coding: utf-8 -*-
# @Time : 2022/4/9 21:47
# @Author : Liuqing
# @File : 24_没有if...else...的简单计算器.py
# @Software : PyCharm
import operator

action = {
    "+": operator.add,
    "-": operator.sub,
    "*": operator.mul,
    "/": operator.truediv,
    "**": operator.pow
}

print(action["**"](2, 4))
